package com.sali.design_pattern.c_factory_method_pattern.lesson_03.service;

import com.sali.design_pattern.c_factory_method_pattern.lesson_03.pojo.User;

/**
 * @description:
 * @author: zhang hang
 * @date: 2022/11/5 09:34.
 * @version: 1.0
 */
public interface IUserService {

    /**
     * description: 根据id查询用户
     **/
    User getUser(Long id);

    /**
     * description: 购买课程
     **/
    String buyCourse(Long userId, Long courseId);

}
